package com.alinesno.cloud.platform.cas.web.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;

import com.alinesno.cloud.platform.cas.web.advice.RequestRole;

public class HelloController extends ParentAbstractController {

	public String name(String name) {
		return "hello , " + name;
	}

	@RequestRole
	@Override
	protected ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response)
			throws Exception {

		response.getWriter().write("hello , cas application!");
		response.getWriter().flush();

		return null;
	}

}
